export default {
  namespaced: true,
  state: {
    token: localStorage.getItem('mj-pc-token')
  },
  mutations: {
    updateToken (state, newtoken) {
      state.token = newtoken
      localStorage.setItem('mj-pc-token', newtoken)
    }
  }
}
